package com.pty.demo.structural.composite;

/**
 * @author pengty
 * @date 2020/3/12
 */
public class HrDepartmentLeaf extends AbstractCompanyComponent {

    public HrDepartmentLeaf(String name) {
        super(name);
    }

    @Override
    public void add(AbstractCompanyComponent component) {

    }

    @Override
    public void remove(AbstractCompanyComponent component) {

    }

    @Override
    public AbstractCompanyComponent getChildren(int depth) {
        for (int i = 0; i < depth; i++) {
            System.out.print('-');
        }
        System.out.println(name);
        return null;
    }

    @Override
    public void operation() {

    }
}
